﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECS.DAL.Entity
{
    public class EicsSetup : ObjectContext
    {
        #region private properties
        private string _stationId = string.Empty;
        private string _setupType = string.Empty;
        private string _setupName = string.Empty;
        private string _valueString = null;
        private float? _valueNumber = null;
        private DateTime? _valueDate = null;
        private DateTime _createDate;
        private string _createBy = string.Empty;
        #endregion
        /// <summary>
        /// setup_id
        /// </summary>
        public string SetupId { set; get; }
        /// <summary>
        /// station_id
        /// </summary>
        public string StationId 
        {
            set
            {
                this._stationId = value;
                this.UpdateObject();
            }
            get
            {
                return this._stationId;
            }
        }
        /// <summary>
        /// type
        /// </summary>
        public string SetupType 
        {
            set
            {
                this._setupType = value;
                this.UpdateObject();
            }
            get
            {
                return this._setupType;
            }
        }
        /// <summary>
        /// setting_name
        /// </summary>
        public string SettingName 
        {
            set
            {
                this._setupName = value;
                this.UpdateObject();
            }
            get
            {
                return this._setupName;
            }
        }
        /// <summary>
        /// setting_value_string
        /// </summary>
        public string ValueString 
        {
            set
            {
                this._valueString = value;
                this.UpdateObject();
            }
            get
            {
                return this._valueString;
            }
        }
        /// <summary>
        /// setting_value_number
        /// </summary>
        public float? ValueNumber 
        {
            set
            {
                this._valueNumber = value;
                this.UpdateObject();
            }
            get
            {
                return this._valueNumber;
            }
        }
        /// <summary>
        /// setting_value_datetime
        /// </summary>
        public DateTime? ValueDate 
        {
            set
            {
                this._valueDate = value;
                this.UpdateObject();
            }
            get
            {
                return this._valueDate;
            }
        }
        /// <summary>
        /// create_date
        /// </summary>
        public DateTime CreateDate 
        {
            set
            {
                this._createDate = value;
                this.UpdateObject();
            }
            get
            {
                return this._createDate;
            }
        }
        /// <summary>
        /// create_by
        /// </summary>
        public string CreateBy 
        {
            set
            {
                this._createBy = value;
                this.UpdateObject();
            }
            get
            {
                return this._createBy;
            }
        }

        public string AppId { set; get; }
        public string Device { set; get; }
        public string UserId { set; get; }
    }
}
